import {getCookie} from '@/utils/cookie'
import axios from 'axios'
export function uploadFile(param) {
  let config = {
    headers : {
      'Content-Type': 'multipart/form-data',
      'token':getCookie('token')
    }
  }
  return axios.post(process.env.VUE_APP_API + '/file/fileUpload',param,config);
}

export function uploadTruckImg(param,id) {
  console.log(id)
  let config = {
    headers : {
      'Content-Type': 'multipart/form-data',
      'token':getCookie('token')
    }
  }
  return axios.post(process.env.VUE_APP_API + '/file/uploadCarImg/' + id,param,config);
}